CC=gcc
CFLAGS=-Wall -pedantic -Werror -g

main_sys=../../system

all: sgame.o sinet.o linklist.o

sgame.o: sgame.c sgame.h $(main_sys)/game.h
	$(CC) $(CFLAGS) -c -o $@ $<

sinet.o: sinet.c sinet.h $(main_sys)/proc.h
	$(CC) $(CFLAGS) -c -o $@ $<

linklist.o: linklist.c linklist.h $(main_sys)/game.h
	$(CC) $(CFLAGS) -c -o $@ $<

clean:
	rm -rf *.o *.exe
